const fs = require('fs')

fs.readdir('F:/www',function (err,files) {
    if (err) {
        console.log('files not found')
    } 
    let content = ''
    files.forEach(item=>{
        content += `  
        <tr class="header" id="theader">
            <th onclick="javascript:sortTable(0);">${item}</th>
            <th class="detailsColumn" onclick="javascript:sortTable(1);">
                大小
            </th>
            <th class="detailsColumn" onclick="javascript:sortTable(2);">
                修改日期
            </th>
        </tr>
        `
    })
    console.log(content);
})